import VueRouter from 'vue-router';
import Page1 from '../pages/Page1.vue';
import componentStore from '../componentStore';

const router = new VueRouter({
    routes: [
        {
            path: '/',
            component: Page1
        },
        {
            path: '/extend',
            component: componentStore.Vextend
        },
        {
            path: '/nextTick',
            component: componentStore.VnextTick
        },
        {
            path: '/directive',
            component: componentStore.Vdirective
        },
        {
            path: '/filter',
            component: componentStore.Vfilter
        },
        {
            path: '/component',
            component: componentStore.Vcomponent
        },
        {
            path: '/use',
            component: componentStore.Vuse
        },
        {
            path: '/mixin',
            component: componentStore.Vmixin
        },
        {
            path: '/version',
            component: componentStore.Vversion
        },
        {
            path: '/data',
            component: componentStore.Vdata
        },
        {
            path: '/props',
            component: componentStore.Vprops
        },
        {
            path: '/computed',
            component: componentStore.Vcomputed
        },
        {
            path: '/methods',
            component: componentStore.Vmethods
        },
        {
            path: '/lifecycle',
            component: componentStore.Vlifecycle
        },
        {
            path: '/command',
            component: componentStore.Vcommand
        },
        {
            path: '/ref',
            component: componentStore.Vref
        },
        {
            path: '/is',
            component: componentStore.Vis
        },
        {
            path: '/innercomponent',
            component: componentStore.Vinnercomponent
        },
        {
            path: '/father-to-son',
            component: componentStore.Vfathertoson
        },                                                          
        {
            path: '/create-plugins',
            component: componentStore.Vcreateplugins
        },
        {
            path: '/create-eventment',
            component: componentStore.VcreateEventment
        },
        {
            path: '/bus',
            component: componentStore.Vbus
        },
        {
            path: '/pubsub',
            component: componentStore.Vpubsub
        },
        {
            path: '/vue-cli',
            component: componentStore.Cvuecli
        },
        {
            path: '/vuex-img',
            component: componentStore.Ximg
        },
        {
            path: '/vuex-use',
            component: componentStore.Xuse
        },
    ]
})

export default router;